#include "object_builder.hpp"
#include "dahua_adapter.hpp"
#include <string.h>

commprd_adapter *
object_builder::create_producer( u_int32 producer_type ){

	switch( producer_type ){
	case DAHUA_DEV:
		return new dahua_adapter();
		break;
	default:
		SAY( DP_DEBUG , "Unknown producer type!!\n");
		return NULL;
		break;
	}
	return NULL;
}

commsrv_adapter *
object_builder::create_server( u_int32 server_type ){

	switch( server_type ){
	case XTREAM_SRV:
		return new xtreamsrv_adapter();
		break;
	case PROXY_SRV:
		return new proxysrv_adapter();
		break;
	default:
		SAY( DP_DEBUG , "Unknown server type !!\n");
		return NULL;
		break;
	}
	return NULL;
}

